# -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import smart_unicode
#from select_multiple_field.models import SelectMultipleField
# Create your models here.
ROOMw_STATUS = (
    (0, u"可预定"),
    (1, u"未开放"),
)

class Test2(models.Model):
	test_folder_ddl  = models.CharField(max_length=100)

	def __unicode__(self):
		return self.test_folder_ddl

	class Meta:
		verbose_name = u"物理位置2"
		verbose_name_plural = verbose_name

class Test1(models.Model):
    main1  = models.CharField(max_length=100)
    main2  = models.CharField(max_length=100)
    name=models.ForeignKey(Test2)


    class Meta:
		verbose_name = u"物理位置1"
		verbose_name_plural = verbose_name


class Test3(models.Model):
    main1  = models.CharField(max_length=100)
    main2  = models.CharField(max_length=100)
    #name=SelectMultipleField(choices=ROOMw_STATUS)


    class Meta:
		verbose_name = u"物理位置1"
		verbose_name_plural = verbose_name

